﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tuto.Objects
{
    /// <summary>
    ///     Represent a TutoEmprunt object on the system
    /// </summary>
    public class TutoEmprunt
    {
        private DateTime _dateEmprunt;
        private DateTime _dateRetour;
        private bool _estRetourné;
        private int _id;
        public TutoEtudiant etudiant;
        public List<Tuto.Objects.TutoExemplaire> exemplaires;

        public DateTime dateEmprunt
        {
            get
            {
                return this._dateEmprunt;
            }
            set
            {
                this._dateEmprunt = value;
            }
        }

        public DateTime dateRetour
        {
            get
            {
                return this._dateRetour;
            }
            set
            {
                this._dateRetour = value;
            }
        }

        public bool estRetourné
        {
            get
            {
                return this._estRetourné;
            }
            set
            {
                this._estRetourné = value;
            }
        }

        public int id
        {
            get
            {
                return this._id;
            }
            set
            {
                this._id = value;
            }
        }

        /// <summary>
        ///     Construct a new TutoEmprunt object on the system
        /// </summary>
        /// <param name="dateE"></param>
        /// <param name="dateR"></param>
        /// <param name="estRetourné"></param>
        /// <param name="etudiant"></param>
        /// <param name="exemplaires"></param>
        public TutoEmprunt(
            DateTime dateE,
            DateTime dateR,
            bool estRetourné,
            TutoEtudiant etudiant,
            List<TutoExemplaire> exemplaires
            )
        {
            this.dateEmprunt = dateE;
            this.dateRetour = dateR;
            this.estRetourné = estRetourné;
            this.etudiant = etudiant;
            this.exemplaires = exemplaires;
        }
        
    }
}
